//
//  HLFollowCountRequest.m
//  YueYue
//
//  Created by hulu001 on 2023/5/19.
//

#import "HLFollowCountRequest.h"

@implementation HLFollowCountRequest
{
    NSDictionary *_params;
}

- (id)initWithParams:(NSDictionary *)params
{
    self = [super init];
    
    if (self) {
        _params = params;
    }
    
    return self;
}

- (NSString *)requestUrl
{
    return @"/relation_ship/follow/count";
}

- (YTKRequestMethod)requestMethod
{
    return YTKRequestMethodGET;
}

- (id)requestArgument
{
    return _params;
}

- (NSString *)fansCount
{
    NSDictionary *data = self.result[@"data"];
    if (![data isKindOfClass:[NSDictionary class]]){
        return @"";
    }
    return [data[@"fansCount"] stringValue];
}

- (NSString *)followCount
{
    NSDictionary *data = self.result[@"data"];
    if (![data isKindOfClass:[NSDictionary class]]){
        return @"";
    }
    return [data[@"followCount"] stringValue];
}

- (NSString *)friendCount
{
    NSDictionary *data = self.result[@"data"];
    if (![data isKindOfClass:[NSDictionary class]]){
        return @"";
    }
    return [data[@"friendCount"] stringValue];
}
@end
